package com.exam.service;

import java.util.Set;

import com.exam.model.User;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author weirdor
 * @since 2017-06-15
 */
public interface IUserService extends IService<User> {
	/**
     * 根据用户名查询用户
     * 
     * @param ew
     * @return
     */
   public  User selectByUsername(EntityWrapper<User> ew);

	public Set<String>  findRoles(String username);

	public Set<String> findPermissions(String username);
	public Page<User> selectUserPage(Page<User> page);
	public User selectUser(String username);
	public User selectUserId(Long id);
}
